package com.wb.shuzu;

/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月16日14:21
 */
public class Test1 {
    public static void main(String[] args) {
        test1();
        System.out.println("-----------------------");
        test2();
        System.out.println("-----------------------");
        test3();
    }
    public static void test1(){
        int[] arr1={1,2,3,4,5};
        for(int i=0;i<arr1.length;i++){
            System.out.println(arr1[i]);
        }
    }
    public static void test2(){
        double[] arr2=new double[]{1,2,3};
        System.out.println(arr2[0]);
        System.out.println(arr2[1]);
        System.out.println(arr2[2]);
    }
    public static void test3(){
        String[] arr3=new String[3];
        arr3[0]="花东煜";
        arr3[1]="五号";
        arr3[2]="六号";
        for(int i=0;i<arr3.length;i++){
            System.out.println(arr3[i]);
        }
    }
}
